package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRF_T")
public class MmrfT extends PO<MmrfT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRFENT", type = IdType.INPUT)
    private String MMRFENT;

    private String MMRFDOCNO;

    private BigDecimal MMRFSEQ;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRFDOCDATE;

    private String MMRF001;

    private BigDecimal MMRF002;
    private String MMRF003;

    private String MMRF004;
    private String MMRF005;
    private String MMRF006;

    private String MMRF007;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRF008;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRF009;

    private String MMRF010;
    private String MMRF011;
    private String MMRF012;
    private String MMRF013;
    private String MMRF100;
    private String MMRF101;
    private String MMRF102;
    private String MMRF103;
    private String MMRF104;

    private String MMRFACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRFUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRFGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRFMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRFTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRFDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRFORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRFORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRFENT;
    }

}
